<?php 
   if($this->status == 1)
   {
?>

<div id="box-content-middle">
         
    <script language="javascript">
	function del(id){
		if(confirm('Bạn có muốn xóa tài khoản này ?')){
			location.href='<?php echo $this->_baseUrl;?>/admin/user/delete/id/'+id;
		}
	}
   </script>
   
   
   <?php 
   if($this->list != null)
     {
       $sum = count($this->list); 
       for( $i = 0; $i < $sum ; $i++)
       {
   ?>
        <div class="content-row <?php if($i % 2 == 0) echo "row0"; else echo "row1";?>">
            <div style="width: 5%;"><?php echo $i+$this->indexStart;?></div>
            <div style="width: 20%;">
                  <?php echo $this->list[$i]['username'];?>
            </div>
            
            <div style="width: 20%;">
            <?php   echo $this->list[$i]['email'];?>
                  <a href="<?php echo $this->_baseUrl;?>/admin/sendemail/e/<?php echo $this->list[$i]['email'];?>" title="Gửi email cho thành viên này" style="float: right;padding: 5px 5px 0px 0px;">
                  <img src="<?php echo $this->_baseUrl;?>/public/images/web/email.png" height="16px" width="16px"/>
                  </a>
            </div>
            
            <div style="width: 20%;">
            <?php   echo $this->list[$i]['fullname'];?>
            </div>
            
            <div style="width: 16%;">
            <?php   echo $this->list[$i]['credit'];?>
            </div>
            
            <div style="width: 8%;">
            <?php   if ($this->list[$i]['ban']==1) echo "<font color='red'>Có</font>"; else echo "<font color='blue'>Không</font>";?>
            </div>
            
            <div style="width: 5%">
                  <a title="Sửa" style="padding-top: 5px;" href="<?php echo $this->_baseUrl;?>/admin/user/edit/id/<?php echo $this->list[$i]['user_id'];?>">
                  <img src="<?php echo $this->_baseUrl;?>/public/images/web/edit.png" height="16px" width="16px"/>
                  </a>
            </div>
            <div style="border-style: none;width: 5%;">
                  <a onclick="del(<?php echo $this->list[$i]['user_id'];?>);" title="Xóa" style="padding-top: 5px;">
                  <img src="<?php echo $this->_baseUrl;?>/public/images/web/delete.png" height="16px" width="16px"/>
                  </a>
            </div>
      </div>
   <?php     
       }  
     }
   ?>
    </div>
    <div id="box-content-bottom">
   <?php 
   		loadHelper("pageslist");
   		pageslist($this->paginator);
   ?>
    </div>
<?php 
   }
   else 
   {
?>
    <div id="box-content-middle">
    </div>
     <div id="box-content-bottom">
     </div>
<?php 
   }
?>